package cn.neusoft.domain;

import java.util.ArrayList;
import java.util.List;

public class CargoVariety {
    private int id;
    private String varietyName;
    private int parentID;
    private List<CargoVariety> childrenList;
    private List<String> cargoNameList;//name

    @Override
    public String toString() {
        return "CargoVariety{" +
                "id=" + id +
                ", varietyName='" + varietyName + '\'' +
                ", parentID=" + parentID +
                ", childrenList=" + childrenList +
                ", cargoList=" + cargoNameList +
                '}';
    }

    public CargoVariety(String varietyName, int parentID) {
        this.varietyName = varietyName;
        this.parentID = parentID;
        childrenList = new ArrayList<CargoVariety>();
        cargoNameList = new ArrayList<String>();
    }

    public CargoVariety() {
    }

    public CargoVariety(String varietyName, int parentID, List<CargoVariety> childrenList, List<String> cargoList) {
        this.varietyName = varietyName;
        this.parentID = parentID;
        this.childrenList = childrenList;
        this.cargoNameList = cargoList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getVarietyName() {
        return varietyName;
    }

    public void setVarietyName(String varietyName) {
        this.varietyName = varietyName;
    }

    public int getParentID() {
        return parentID;
    }

    public void setParentID(int parentID) {
        this.parentID = parentID;
    }

    public List<CargoVariety> getChildrenList() {
        return childrenList;
    }

    public void setChildrenList(List<CargoVariety> childrenList) {
        this.childrenList = childrenList;
    }

    public List<String> getCargoNameList() {
        return cargoNameList;
    }

    public void setCargoNameList(List<String> cargoNameList) {
        this.cargoNameList = cargoNameList;
    }
}
